package com.ls.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("student")
public class Student {
    private Integer id;
    private String sno;
    private String studentName;
    private String studentPassword;
    private String studentSex;
    private String studentClass;
}

/*
    -- id 主键
    id           int(5) COLLATE utf8_bin NOT NULL auto_increment COMMENT '主键',
    -- 学号 主键
    sno        varchar(8) COLLATE utf8_bin NOT NULL UNIQUE COMMENT '学号',
    -- 学生姓名
    student_name   varchar(10) COLLATE utf8_bin NOT NULL COMMENT '姓名',
    -- 学生密码
    student_password  varchar(12) DEFAULT '123456' COLLATE utf8_bin NOT NULL COMMENT '密码' ,
	-- 性别
	student_sex varchar(5) COLLATE utf8_bin NOT NULL COMMENT '性别',
	-- 学生班级
	student_class varchar(10) COLLATE utf8_bin NOT NULL COMMENT '学生班级',
	-- 教师id
	tid        int(5) COLLATE utf8_bin NOT NULL COMMENT '教师id',
 */
